package MyJdialog;

import javax.swing.*;
import java.awt.*;

public class Login{
    public static int login(){
        JDialog jDialog = new JDialog();
        jDialog.setBounds(900, 400, 200, 150);
        jDialog.setVisible(true);
        jDialog.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
        JLabel jLabel = new JLabel("发送失败ERROR");
        Container container = jDialog.getContentPane();
        jDialog.setLayout(new FlowLayout(FlowLayout.CENTER));
        container.add(jLabel, SwingConstants.CENTER);
        return 0;
    }
}
